<?php

class Cat_Processor_Php extends Cat_Processor_Base
{
	
	private function go()
	{		
		echo eval( "\n?>\n{$this->body}\n<?php\n" );
	}
	
	function processString( $string )
	{
		$de = ini_get( 'display_errors' );
		ini_set( 'display_errors', 0 );
		ob_start();
		// variables encapsulation
		$this->setParam( 'body', $string );
		$this->go();
		$out = ob_get_clean();
		ob_end_clean();
		ini_set( 'display_errors', $de );
		return $out;
	}
}

?>